<script>
	import config from '@/app.config.js'
	export default {
		globalData: {
			base_info: {}
		},
		methods: {

		},
		// 监听 - 页面404
		onPageNotFound: function(e) {
			uni.redirectTo({
				url: config.error.url
			})
		},
		onLaunch: function() {
			if (config.debug) console.log('App Launch')
			let that = this;
			uni.getStorage({
				key: 'base_info',
				success: res => {
					that.globalData.base_info = res.data
				}
			})
		},
		onLoad() {
			uni.hideTabBar()
		},
		onShow: function() {
			uni.hideTabBar()
			if (config.debug) console.log('App Show')
		},
		onHide: function() {
			if (config.debug) console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "./uni_modules/vk-uview-ui/index.scss";
	@import "./common/css/app.scss";
	@import "colorui/main.css";
	@import "colorui/icon.css";
</style>
